package com.example.lawyermanager.dangao.service;

import com.example.lawyermanager.dangao.entity.Lawyer;
import com.example.lawyermanager.dangao.mapper.LawyerMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 86134
 * @version 1.0
 */
@Service
public class LawyerServiceImpl implements LawyerService {
    @Autowired
    LawyerMapper lawyerMapper;
    /**
     * 添加律师
     * @param lawyer 律师对象
     * @return 1 成功 0失败
     */
    @Override
    public int addLawyer(Lawyer lawyer) {
        return lawyerMapper.insertLawyer(lawyer);
    }
}
